function cfdUpdatePhyBoundaryPatchs
%--------------------------------------------------------------------------
%  Written by LiuHaHa @ NWPU, 2022 01 
%  Contact me at: liuzhikan@mail.nwpu.edu.cn
%==========================================================================
% Routine Description:
%   This function update the flow field at the boundary face
%--------------------------------------------------------------------------
global cfdFlow;
numberOfBoundaries = cfdFlow.mesh.numberOfBoundaryPatches;
cfdBoundaries = cfdFlow.mesh.cfdBoundaryPatchesArray;


for iBPatch=1:numberOfBoundaries
    if(strcmp(cfdBoundaries{iBPatch}.name,'wall') || strcmp(cfdBoundaries{iBPatch}.name,'WALL'))
        cfdUpdateWallBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'wallslip') || strcmp(cfdBoundaries{iBPatch}.name,'WALLSLIP'))
        cfdUpdateWallSlipBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'in') || strcmp(cfdBoundaries{iBPatch}.name,'IN'))
        cfdUpdateInletBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'out') || strcmp(cfdBoundaries{iBPatch}.name,'OUT'))
        cfdUpdateOutletBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'symmetry') || strcmp(cfdBoundaries{iBPatch}.name,'SYMMETRY') ... 
           || strcmp(cfdBoundaries{iBPatch}.name,'sym') || strcmp(cfdBoundaries{iBPatch}.name,'SYM') )
        cfdUpdateSymmetryBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'far') || strcmp(cfdBoundaries{iBPatch}.name,'farfield') ... 
           || strcmp(cfdBoundaries{iBPatch}.name,'FAR') || strcmp(cfdBoundaries{iBPatch}.name,'FARFIELD') )
        cfdUpdateFarfieldBoundary(iBPatch);
    elseif(strcmp(cfdBoundaries{iBPatch}.name,'ringleb') )
        cfdUpdateRinglebBoundary(iBPatch);
    else
        error('\nError: The type of boundary doesnot exist \n');
    end

end































